<template>
  <z-modal
    :width="800"
    v-bind="modalOption"
    :okText="false"
    @ok="handleOk"
    @cancel="handleCancel"
  >
    <a-spin :spinning="confirmLoading">
      <a-form-model layout="horizontal" labelAlign="right" ref="ruleForm" :label-col="labelCol" :wrapper-col="wrapperCol" :model="form" :rules="validatorRules">
        <a-form-model-item label="规格名称" prop="specName">
          <a-input placeholder="请输入规格名称" v-model.trim="form.specName" :disabled="disableSubmit"/>
        </a-form-model-item>
        <a-form-model-item label="项目" prop="productId">
          <a-input placeholder="请输入项目" v-model.trim="form.productId" :disabled="disableSubmit"/>
        </a-form-model-item>
        <a-form-model-item label="版本" prop="specVersion">
          <a-input placeholder="请输入版本" v-model.trim="form.specVersion" :disabled="disableSubmit"/>
        </a-form-model-item>
        <a-form-model-item label="版本提交时间" prop="submitTime">
          <a-date-picker placeholder="请选择版本提交时间" v-model="form.submitTime" style="width: 100%" :disabled="disableSubmit"/>
        </a-form-model-item>
      </a-form-model>
    </a-spin>
  </z-modal>
</template>

<script>
import ModalFormMixin from '@/mixins/ModalFormMixin'

export default {
  name: "crmSpecificationModal",
  mixins: [ModalFormMixin],
  components: {
  },
  data() {
    return {
      validatorRules: {
        specName: [
          { required: true, message: '请输入规格名称!' }
        ],
      },
      url: {
        add: '/specification/add',
        edit: '/specification/edit'
      },
      // 查询参数
      queryParam: {},
      selectedRowKeys: [],
      selectedRows: [],
      toggleSearchStatus: false
    }
  },
  methods: {
    addAfter() {
    }
  }
}
</script>
